<?php
include_once  'BaseService.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/ad/sys/com/model/db/AdCategorDAO.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/ad/sys/com/model/util/Util.php'; 

class AdCategorService extends BaseService {
	
	function __construct() {
		parent::__construct();
	 	parent::setTarget($this);	
	}
	
	public function getAll() {
		$dao = new AdCategorDAO();
		$items =  $dao->getAll();
				
		echo Util::toJson($items);
	}
}


$service = new AdCategorService();
$service->__call($_GET["action"], null);
?>